package com.victor.service;

import com.github.pagehelper.PageInfo;
import com.victor.entity.Advertisement;

public interface AdvertisementService {
	/**
	 * 添加广告
	 * @param advertisement
	 * @return
	 */
	boolean insert(Advertisement advertisement);
	/**
	 * 修改
	 * @param advertisement
	 * @return
	 */
	boolean update(Advertisement advertisement);
	/**
	 * 广告列表
	 * @param page
	 * @param row
	 * @return
	 */
	PageInfo<Advertisement> getAll(int page, int row);
	/**
	 * 查询详情
	 * @param id
	 * @return
	 */
	Advertisement selById(Advertisement advertisement);
	/**
	 * 删除
	 * @param ids
	 * @return
	 */
	boolean  delete(int[] ids);

}
